package src.main.BehavioralPatterns.Strategy;

// 具体策略：支付宝支付
public class AlipayPayment implements PaymentStrategy {
    private String account;
    public AlipayPayment(String account) {
        this.account = account;
    }

    @Override
    public void pay(double amount) {
        System.out.println("Paying " + amount + " alipay");
        System.out.println("Alipay account:" + account);
    }
}
